<%@ page language="java" import="java.util.*,com.bean.*,com.dao.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("utf-8");
	String bank = request.getParameter("bank");
	String no = request.getParameter("no");
	String sdate = request.getParameter("sdate");
	float money = Float.parseFloat(request.getParameter("money"));
	UserBean users = (UserBean)session.getAttribute("user");
   	String user = "";
   	if(users != null){
   		user = users.getUsername();
   	}
	AccountBean bean = new AccountBean();
	bean.setBank(bank);
	bean.setNo(no);
	bean.setSdate(sdate);
	bean.setMoney(money);
	bean.setUser(user);
	AccountDao dao = new AccountDao();
	if(dao.addBank(bean)>0){
		//页面跳转
      	response.sendRedirect("destory.jsp");
	}
%>

